<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<h:outputStylesheet library="css" name="main.css" />
</h:head>
<h:body>
	<ui:composition template="/template/default.xhtml">
		<ui:define name="no_form">

			<fieldset class="container">

				<p:tabView id="tabView" activeIndex="" immediate="true" ajax="false">

					<p:tab title="Jurisconsult(TJ-MA)" id="laudos">

						<h:form id="form">

							<p:outputPanel id="modelosLaudos">
								<p:dataTable id="consultasTable" var="consulta"
									value="#{laudoMB.consultaLazyDataModel}" paginator="true"
									rows="10"
									paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
									rowsPerPageTemplate="5,10,15,25,50" lazy="true"
									selectionMode="single"
									selection="#{laudoMB.consultaSelecionada}">
									
									<p:ajax event="rowDblselect" listener="#{laudoMB.redirectCliqueDuplo}" />

									<p:column>
										<f:facet name="header">
											<h:outputText value="Última verificação" />
										</f:facet>
										<h:outputText value="#{consulta.horarioStr}" />
									</p:column>

									<p:column>
										<f:facet name="header">
											<h:outputText value="Número do processo" />
										</f:facet>
										<h:outputText value="4582013" />
									</p:column>
									
									<p:column>
										<f:facet name="header">
											<h:outputText value="Intervalo de verificação" />
										</f:facet>
										<h:outputText value="5" />
									</p:column>
									
									<p:column>
										<f:facet name="header">
											<h:outputText value="Ações" />
										</f:facet>
										<h:outputText value="E-mail, SMS, Aviso no sistema" />
									</p:column>
									
									<p:column style="width:5%">
										<f:facet name="header">
											<h:outputText value="#{msgs.operacao}" />
										</f:facet>
										
										<p:commandLink>
			    							<h:graphicImage library="img" name="edit.png" height="15" width="15" />
										</p:commandLink>
										
										<p:commandLink>
			    							<h:graphicImage library="img" name="excluir.png" height="15" width="14" />
										</p:commandLink>
							
									</p:column>

									<f:facet name="footer">
										<p:commandButton action="#{laudoMB.laudo()}" value="Cadastrar novo processo" ajax="false" />
									</f:facet>

								</p:dataTable>
							</p:outputPanel>

						</h:form>

					</p:tab>
					
					<p:tab title="DOU" id="dou">
					</p:tab>
					
					<p:tab title="DOEPI" id="doepi">
					</p:tab>
					
					<p:tab title="DOEMA" id="doema">
					</p:tab>
					
				</p:tabView>

			</fieldset>

		</ui:define>
	</ui:composition>
</h:body>
</html>